Ultrasound-based gap analysis